Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YJIT: Pass nil to anonymous kwrest when empty #9972

Merged
merged 1 commit into from Feb 15, 2024

Conversation

XrXr
Copy link
Member

@XrXr XrXr commented Feb 14, 2024

This is the same optimization as e4272fd ("Avoid allocation when
passing no keywords to anonymous kwrest methods") but for YJIT. For
anonymous kwrest parameters, nil is just as good as an empty hash.

On the usage side, update splatkw to handle nil with a leaner path.

This is the same optimization as e4272fd ("Avoid allocation when
passing no keywords to anonymous kwrest methods") but for YJIT. For
anonymous kwrest parameters, nil is just as good as an empty hash.

On the usage side, update `splatkw` to handle `nil` with a leaner path.
@matzbot matzbot requested a review from a team February 14, 2024 23:56
@maximecb maximecb merged commit da7b947 into ruby:master Feb 15, 2024
98 checks passed
@XrXr XrXr deleted the yjit-empty-kwrest branch February 15, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants